<%@ page language="java" import="java.util.*,com.model.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
			
	int userType = Integer.parseInt(request.getSession().getAttribute("userType")+"");
	if(userType==1){
		Teacher tea = (Teacher)request.getSession().getAttribute("user");
		if(tea.getUpwd().equals("123456")){
		     response.sendRedirect(path + "/admin/teacher/userPw.jsp");
			
		}
	}
	if(userType==2){
		Student stu = (Student)request.getSession().getAttribute("user");
		if(stu.getUpwd().equals("123456")){
		     response.sendRedirect(path + "/admin/student/userPw.jsp");
			
		}
	}
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>

		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>管理系统</title>
	<link rel="stylesheet" type="text/css" href="<%=path%>/css/base.css" />
			
		 
		<script type="text/javascript" src="<%=path%>/js/jquery.js">
		</script>

	</head>
	<body>
		<div class="mainindex">
			 
          <table width="98%" border="0" cellpadding="2" cellspacing="1"
			bgcolor="#D1DDAA" align="center" style="margin-top: 8px">
			<tr bgcolor="#E7E7E7">
				<td height="14" colspan="42" background="<%=path%>/img/tbg.gif">
					&nbsp;欢迎使用学生考试成绩管理系统&nbsp;
				</td>
			</tr>
			 
		</table>
		 
		 
	</body>
</html>

